<?php
//include_once("vars/creds.php");
//foreach(glob("scripts/*.php") as $script)
//	include_once($script);

class snakeGrass{
	

	public function __construct(){
		include_once("vars/creds.php");
		include_once("vars/funcs.php");
		include_once("vars/guncs.php");
		include_once("vars/huncs.php");
			
	}

	public function getPage($page){
		if(isset($page) && $page != ''){
			include("mod/mod_".$page.".php");
			$_SESSION[$page] = true;
		}
	}

	public function render($action){
		switch ($action) {
			case 'login': login(); break;
			case 'logout': logout(); break;
			case 'register': register(); break;
		}
	}

}
?>